package com.laborder.sysyy.service.college.impl;

import com.laborder.sysyy.dao.CollegeDaoMapper;
import com.laborder.sysyy.entity.College;
import com.laborder.sysyy.service.college.CollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author 786107529@qq.com FJL
 * @Date 2018/9/10 9:08
 */
@Service
@Transactional
public class CollegeServiceImpl implements CollegeService {
    @Autowired
    private CollegeDaoMapper collegeDaoMapper;
    @Override
    public List<College> findCollegeWithPage(Map<String,Object> map){
        return collegeDaoMapper.findCollegeWithPage(map);
    }
    @Override
    public List<College> findAllCollege(){
        return collegeDaoMapper.findAllCollege();
    }
    @Override
    public int getCollegeCount(Map<String,Object> map) {
        return collegeDaoMapper.getCollegeCount(map);
    }
    @Override
    public int saveCollegeInfo(College college) {
        return collegeDaoMapper.saveCollegeInfo(college);
    }
    @Override
    public int delCollegeInfo(int clId) {
        return collegeDaoMapper.delCollegeInfo(clId);
    }
    @Override
    public College getCollegeInfo(String clId) {
        return collegeDaoMapper.getCollegeInfo(clId);
    }
    @Override
    public int updateCollegeInfo(College college) {
        return collegeDaoMapper.updateCollegeInfo(college);
    }
    
     /**
       * @function: 查询学院信息
       * @author: 759057893@qq.com lyz
       * @date: 2019/1/11 11:00
       */
    @Override
    public List<College> selectCollege() {
        return collegeDaoMapper.selectCollege();
    }
    @Override
    public College findCollegeByName(String clName){
        return collegeDaoMapper.findCollegeByName(clName);
    }
}
